﻿@inherits RazorSharpEmail.EmailTemplate<Exceptionless.Core.Mail.Models.DailySummaryModel>
@{ Layout = "_Layout.html.cshtml"; }

<!-- BODY -->
<table class="body-wrap" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; width: 100%;">
    <tr style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;"></td>
        <td class="container" bgcolor="#F7F7F7" style="margin: 0 auto; padding: 0; font-family: 'Open Sans', arial, sans-serif; display: block; max-width: 600px; clear: both;">

            <div class="content" style="margin: 0 auto; padding: 15px; font-family: 'Open Sans', arial, sans-serif; max-width: 600px; display: block;">
                <table style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; width: 100%;">
                    <tr style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                            <h1 style="font-size: 20px; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; color: #333;">Summary for @Model.StartDate.ToShortDateString()</h1>
                            @if (Model.HasSubmittedEvents)
                            {
                                if (Model.Total > 0)
                                {
                                <p class="lead" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 17px; line-height: 1.6;">
                                    The "@Model.ProjectName" project had <b>@Model.Total total</b>, <b>@Model.UniqueTotal unique</b>, and <b>@Model.NewTotal new</b> errors.
                                </p>
                                }
                                else
                                {
                                <p class="lead" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 17px; line-height: 1.6;">
                                    Congrats! The "@Model.ProjectName" project was exceptionless!
                                </p>
                                }

                                if (Model.IsFreePlan)
                                {
                                <p class="lead" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 17px; line-height: 1.6;">
                                    You are currently on a free plan. If you would like to receive notifications for errors as they happen, <a href="@Model.BaseUrl/project/@Model.ProjectId/error/dashboard" rel="notrack">upgrade to a paid plan</a>.
                                </p>
                                }
                                <!-- Button -->
                                <p class="center" style="margin: 10px auto 0 auto; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 14px; line-height: 1.6; text-align: center;">
                                    <a class="btn" href="@Model.BaseUrl/project/@Model.ProjectId/error/dashboard" rel="notrack" target="_blank" style="margin: 10px auto 24px; padding: 10px 15px; min-width: 200px; font-family: 'Open Sans', arial, sans-serif; color: #FFF; text-decoration: none; background-color: #6b991c; font-weight: bold; margin-right: 10px; text-align: center; cursor: pointer; display: inline-block; border-radius: 3px;">View Dashboard</a>
                                </p>
                            }
                            else
                            {
                                <p class="lead" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 17px; line-height: 1.6;">
                                    Unfortunately, it appears that your "@Model.ProjectName" project has not yet been configured to send errors to <a href="http://exceptionless.com">Exceptionless</a>. Send us an email at <a href="mailto:support@exceptionless.io">support@exceptionless.io</a> if you have any questions or need help getting started.
                                </p>
                            }

                            <div class="other" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                                <h5 style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; line-height: 1.1; margin-bottom: 5px; color: #939393; font-weight: 900; font-size: 17px;">Other Actions</h5>
                                <ul style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 20px; font-weight: normal; font-size: 14px; line-height: 1.6;">
                                    <li style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-left: 5px; list-style-position: inside;"><a href="@Model.BaseUrl/account/manage?projectId=@Model.ProjectId&tab=notifications" rel="notrack" target="_blank" style="margin: 0;padding: 0;font-family: 'Open Sans', arial, sans-serif;color: #578F01;">Change your notification settings for this project</a></li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- /content -->

        </td>
        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;"></td>
    </tr>
</table>
<!-- /BODY -->

